from flask import Flask, render_template
from flask_cors import CORS


# 启动 Flask 项目
app = Flask(__name__)
CORS(app)

# 默认首页跳转到 index.html
@app.route('/')
def index():
    return render_template("index.html")


if __name__ == '__main__':
    # 启动 Flask 应用
    app.run(host='0.0.0.0', port=6006, debug=True, use_reloader=False)
else:
    application = app
